﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010CB RID: 4299
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEntityTeleportScRsp : IMessage<SceneEntityTeleportScRsp>, IMessage, IEquatable<SceneEntityTeleportScRsp>, IDeepCloneable<SceneEntityTeleportScRsp>, IBufferMessage
	{
		// Token: 0x1700365D RID: 13917
		// (get) Token: 0x0600C039 RID: 49209 RVA: 0x002075D7 File Offset: 0x002057D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEntityTeleportScRsp> Parser
		{
			get
			{
				return SceneEntityTeleportScRsp._parser;
			}
		}

		// Token: 0x1700365E RID: 13918
		// (get) Token: 0x0600C03A RID: 49210 RVA: 0x002075DE File Offset: 0x002057DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEntityTeleportScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700365F RID: 13919
		// (get) Token: 0x0600C03B RID: 49211 RVA: 0x002075F0 File Offset: 0x002057F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEntityTeleportScRsp.Descriptor;
			}
		}

		// Token: 0x0600C03C RID: 49212 RVA: 0x002075F7 File Offset: 0x002057F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportScRsp()
		{
		}

		// Token: 0x0600C03D RID: 49213 RVA: 0x00207600 File Offset: 0x00205800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportScRsp(SceneEntityTeleportScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.entityMotion_ = ((other.entityMotion_ != null) ? other.entityMotion_.Clone() : null);
			this.clientPosVersion_ = other.clientPosVersion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C03E RID: 49214 RVA: 0x00207658 File Offset: 0x00205858
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportScRsp Clone()
		{
			return new SceneEntityTeleportScRsp(this);
		}

		// Token: 0x17003660 RID: 13920
		// (get) Token: 0x0600C03F RID: 49215 RVA: 0x00207660 File Offset: 0x00205860
		// (set) Token: 0x0600C040 RID: 49216 RVA: 0x00207668 File Offset: 0x00205868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003661 RID: 13921
		// (get) Token: 0x0600C041 RID: 49217 RVA: 0x00207671 File Offset: 0x00205871
		// (set) Token: 0x0600C042 RID: 49218 RVA: 0x00207679 File Offset: 0x00205879
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityMotion EntityMotion
		{
			get
			{
				return this.entityMotion_;
			}
			set
			{
				this.entityMotion_ = value;
			}
		}

		// Token: 0x17003662 RID: 13922
		// (get) Token: 0x0600C043 RID: 49219 RVA: 0x00207682 File Offset: 0x00205882
		// (set) Token: 0x0600C044 RID: 49220 RVA: 0x0020768A File Offset: 0x0020588A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClientPosVersion
		{
			get
			{
				return this.clientPosVersion_;
			}
			set
			{
				this.clientPosVersion_ = value;
			}
		}

		// Token: 0x0600C045 RID: 49221 RVA: 0x00207693 File Offset: 0x00205893
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEntityTeleportScRsp);
		}

		// Token: 0x0600C046 RID: 49222 RVA: 0x002076A4 File Offset: 0x002058A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEntityTeleportScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.EntityMotion, other.EntityMotion) && this.ClientPosVersion == other.ClientPosVersion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C047 RID: 49223 RVA: 0x00207704 File Offset: 0x00205904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.entityMotion_ != null)
			{
				num ^= this.EntityMotion.GetHashCode();
			}
			if (this.ClientPosVersion != 0U)
			{
				num ^= this.ClientPosVersion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C048 RID: 49224 RVA: 0x00207772 File Offset: 0x00205972
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C049 RID: 49225 RVA: 0x0020777A File Offset: 0x0020597A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C04A RID: 49226 RVA: 0x00207784 File Offset: 0x00205984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.entityMotion_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.EntityMotion);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ClientPosVersion != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ClientPosVersion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C04B RID: 49227 RVA: 0x002077FC File Offset: 0x002059FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.entityMotion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EntityMotion);
			}
			if (this.ClientPosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClientPosVersion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C04C RID: 49228 RVA: 0x0020786C File Offset: 0x00205A6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEntityTeleportScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.entityMotion_ != null)
			{
				if (this.entityMotion_ == null)
				{
					this.EntityMotion = new EntityMotion();
				}
				this.EntityMotion.MergeFrom(other.EntityMotion);
			}
			if (other.ClientPosVersion != 0U)
			{
				this.ClientPosVersion = other.ClientPosVersion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C04D RID: 49229 RVA: 0x002078E8 File Offset: 0x00205AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C04E RID: 49230 RVA: 0x002078F4 File Offset: 0x00205AF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 40U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ClientPosVersion = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.entityMotion_ == null)
					{
						this.EntityMotion = new EntityMotion();
					}
					input.ReadMessage(this.EntityMotion);
				}
			}
		}

		// Token: 0x04004D73 RID: 19827
		private static readonly MessageParser<SceneEntityTeleportScRsp> _parser = new MessageParser<SceneEntityTeleportScRsp>(() => new SceneEntityTeleportScRsp());

		// Token: 0x04004D74 RID: 19828
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D75 RID: 19829
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04004D76 RID: 19830
		private uint retcode_;

		// Token: 0x04004D77 RID: 19831
		public const int EntityMotionFieldNumber = 1;

		// Token: 0x04004D78 RID: 19832
		private EntityMotion entityMotion_;

		// Token: 0x04004D79 RID: 19833
		public const int ClientPosVersionFieldNumber = 15;

		// Token: 0x04004D7A RID: 19834
		private uint clientPosVersion_;
	}
}
